#
# Copyright (C) [2024] Xingyun Integrated Circuit, Inc.
#
# GreenCode was a private technology asset of Xingyun Integrated Circuit， Inc （Confidential）
# Author: Shawn.Tan
# Date: 2025.10.28
#
# History: Initial Version 2025.10.28
#
#
from base.Sequence import Sequence
from gpgpu.EnvGPGPU import EnvGPGPU
from gpgpu.GenThreadGPGPU import GenThreadGPGPU


class MyMainSequence(Sequence):
    def generate(self, **kargs):
        for _ in range(20):
            instr_record_id = self.genInstruction("CSRRW#register#CALM", {"rd": 0, "csr": 0x140})
            instr_record_id = self.genInstruction("CSRRC#register#CALM", {"rs1": 0, "csr": 0x140})


MainSequenceClass = MyMainSequence
GenThreadClass = GenThreadGPGPU
EnvClass = EnvGPGPU
